package com.micro.service.Impl;

import com.micro.service.ConsumerUserService;
import com.micro.service.ProviderUserService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

@Service
@DubboService(interfaceClass = ConsumerUserService.class)
public class ConsumerUserServiceImpl implements ConsumerUserService {

    @DubboReference
    private ProviderUserService providerUserService;

    @Override
    public String userName() {
        return providerUserService.getName();
    }

}
